Set markdown AI summary view mode to be default#15499
Set markdown AI summary view mode to be default#15499InAnYan wants to merge 3 commits intoJabRef:mainfrom
Conversation
Review Summary by QodoSet Markdown as default AI summary view mode
WalkthroughsDescription• Changes AI summary view mode default from plain text to Markdown • Updates checkbox initialization to reflect Markdown as default view • Improves user experience with richer formatted output by default Diagramflowchart LR
A["Summary Component Initialization"] -->|"updateContent parameter"| B["Plain Text Mode<br/>false"]
A -->|"Checkbox selected state"| C["Unchecked"]
D["Updated Initialization"] -->|"updateContent parameter"| E["Markdown Mode<br/>true"]
D -->|"Checkbox selected state"| F["Checked"]
B -.->|"Change"| E
C -.->|"Change"| F
File Changes1. jabgui/src/main/java/org/jabref/gui/ai/components/summary/SummaryShowingComponent.java
|
Code Review by Qodo
|
jabgui/src/main/resources/org/jabref/gui/ai/components/summary/SummaryShowingComponent.fxml
Outdated
Show resolved
Hide resolved
|
Note that your PR will not be reviewed/accepted until you have gone through the mandatory checks in the description and marked each of them them exactly in the format of |
|
4th comment of qodo (in others) is to be fixed |
|
Sorry, got a bit busy. Regarding the 4th comment - no, it's not valid, because the initial view doesn't depend on the status of the check box. I.e. if I removed This issue happens because I didn't used well the concepts of observables and bindings, and so it works wishy-whacky. In my refactoring PR I have completely rethought the UI |
| <padding> | ||
| <Insets bottom="8.0" left="8.0" right="8.0" top="8.0" /> | ||
| <Insets bottom="8.0" | ||
| left="8.0" | ||
| right="8.0" | ||
| top="8.0"/> | ||
| </padding> | ||
| <BorderPane | ||
| minHeight="30.0"> | ||
| <left> | ||
| <CheckBox | ||
| fx:id="markdownCheckbox" | ||
| mnemonicParsing="false" | ||
| onAction="#onMarkdownToggle" |
There was a problem hiding this comment.
This file underwent IntelliJ formatting I think
Related issues and pull requests
Addresses https://discourse.jabref.org/t/add-a-jabref-setting-that-remembers-the-ai-summary-markdown-checkbox-state-so-markdown-view-can-stay-enabled-by-default-instead-of-resetting-each-time/9078
PR Description
Steps to test
Checklist
CHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)